﻿using System;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using OfficeOpenXml.Table;

namespace NP.BPMReportPlatform.UserTrial.Dto
{
    [ExcelExporter(Name = "报表数据", TableStyle = TableStyles.Light10, AutoFitAllColumn = true)]
    public class GetGeneralResultOutput
    {
        /// <summary>
        /// 组织单元1
        /// </summary>
        public string Organization1 { get; set; }

        /// <summary>
        /// 组织单元2
        /// </summary>
        [ExporterHeader(DisplayName = "组织部门2")]
        public string Organization2 { get; set; }

        /// <summary>
        /// 组织单元3
        /// </summary>
        [ExporterHeader(DisplayName = "组织部门3")]
        public string Organization3 { get; set; }

        /// <summary>
        /// 组织单元4
        /// </summary>
        [ExporterHeader(DisplayName = "组织部门4")]
        public string Organization4 { get; set; }

        /// <summary>
        /// 组织单元5
        /// </summary>
        [ExporterHeader(DisplayName = "组织部门5")]
        public string Organization5 { get; set; }

        /// <summary>
        /// 组织单元6
        /// </summary>
        [ExporterHeader(DisplayName = "组织部门6")]
        public string Organization6 { get; set; }

        /// <summary>
        /// 组织单元7
        /// </summary>
        [ExporterHeader(DisplayName = "组织部门7")]
        public string Organization7 { get; set; }

        /// <summary>
        /// 组织单元8
        /// </summary>
        [ExporterHeader(DisplayName = "组织部门8")]
        public string Organization8 { get; set; }
        /// <summary>
        /// BPM流程ID
        /// </summary>
        [ExporterHeader(DisplayName = "BPM流程ID")]
        public string InstanceNumber { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        [IEIgnore]
        public DateTime? RegularDate { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        [ExporterHeader(DisplayName = "操作时间")]
        public string RegularDateFormat
        {
            get
            {
                return this.RegularDate?.ToString("yyyy年MM月dd日");
            }
        }

        /// <summary>
        /// 员工工号
        /// </summary>        
        [ExporterHeader(DisplayName = "员工工号")]
        public string WorkNumber { get; set; }

        /// <summary>
        /// 员工姓名
        /// </summary>
        [ExporterHeader(DisplayName = "员工姓名")]
        public string UserName { get; set; }

        /// <summary>
        /// IU综合评价
        /// </summary>
        [ExporterHeader(DisplayName = "IU综合评价")]
        public string ResultStatusName { get; set; }

        /// <summary>
        /// 审批结果
        /// </summary>
        [ExporterHeader(DisplayName = "审批结果")]
        public string ApproveStatusName { get; set; }

        /// <summary>
        /// ResultStatus
        /// </summary>
        [IEIgnore]
        public int? ResultStatus { get; set; }
    }
}